function collect_same_elements(collection_a, object_b) {
  let arr=[];
  for(let i of collection_a){
    for(let j of object_b['value']){
      if(i.key==j){
        arr.push(i.key);
      }
    }
  }
  return arr;
}

module.exports = collect_same_elements;
